package com.sqfw.project.knowledge.controller;

import com.sqfw.framework.web.domain.AjaxResult;
import com.sqfw.project.knowledge.service.ElderlyAllowanceService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 养老津贴
 *
 * @author tangxt
 * @date 2024-06-20
 * */
@Api(tags = "养老津贴")
@RestController
@RequestMapping("/elderlyAllowance")
public class ElderlyAllowanceController {


    @Autowired
    private ElderlyAllowanceService elderlyAllowanceService;

    /**
     * 查询养老津贴数据
     * @param cetf 身份证号
     * @return
     * */
    @PreAuthorize("@ss.hasPermi('queryElderlyAllowance')")
    @GetMapping("/queryElderlyAllowance")
    public AjaxResult queryElderlyAllowance(@RequestParam("cetf") String cetf) {
        return elderlyAllowanceService.queryElderlyAllowance(cetf);
    }


}
